import {createRouter, createWebHistory} from 'vue-router';

import index from '../components/index.vue';
import TheWelcome from '../components/TheWelcome.vue';
import userIndex from '../components/project/user/index.vue';

const routes = [
    {
        path: '/',
        name: 'index',
        component: index
    },
    {
        path: '/TheWelcome',
        name: 'TheWelcome',
        component: TheWelcome
    },
    {
        path: '/user',
        name: 'userIndex',
        component: userIndex
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
